$daterangepickerhover: #ffedf1;
.ma-date-range-picker {
  .ma-input {}
}

.ma-date-range-picker-wrapper {
  &.date-picker-wrapper {
    display: none;
    position: absolute;
    z-index: 2;
    border: 1px solid #ebebeb;
    background-color: #fff;
    padding: 0px;
    font-size: $font12;
    line-height: 20px;
    color: #666;
    -webkit-box-sizing: initial;
            box-sizing: initial;
    border-radius: 4px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    -webkit-box-shadow: 0 1px 3px 0 rgba($black, 0.25);
            box-shadow: 0 1px 3px 0 rgba($black, 0.25);
  }
  &.show {
    display: block !important;
  }
  thead tr:nth-child(1) {
    border-bottom: 1px solid #eeeeee;
  }
  &.date-picker-wrapper.inline-wrapper {
    position: relative;
    -webkit-box-shadow: none;
            box-shadow: none;
    display: inline-block;
  }
  &.date-picker-wrapper.single-date {
    width: auto;
  }
  &.date-picker-wrapper.no-shortcuts {
    padding-bottom: 0;
  }
  &.date-picker-wrapper.no-topbar {
    padding-top: 0;
  }
  &.date-picker-wrapper .footer {
    font-size: 11px;
    padding-top: 3px;
    display: none;
  }
  &.date-picker-wrapper b {
    color: #666;
    font-weight: 700;
  }
  &.date-picker-wrapper a {
    color: rgb(107, 180, 214);
    text-decoration: underline;
  }
  &.date-picker-wrapper .month-name {
    text-transform: uppercase;
  }
  &.date-picker-wrapper .month-wrapper {
    border-radius: 3px;
    background-color: #fff;
    padding: 0px;
    cursor: default;
    position: relative;
    overflow: hidden;
    width: auto !important;
  }
  &.date-picker-wrapper .month-wrapper table {
    width: 190px;
    float: left;
  }
  &.date-picker-wrapper .month-wrapper table.month2 {
    width: 190px;
    float: left;
  }
  &.date-picker-wrapper .month-wrapper table {
    th,
    td {
      vertical-align: middle;
      text-align: center;
      padding: 4px;
      margin: 0px;
    }
    tbody tr td:first-child {
      padding-left: 10px;
    }
    tbody tr td:last-child {
      padding-right: 10px;
    }
    tbody tr:last-child td {
      padding-bottom: 10px;
    }
  }
  &.date-picker-wrapper .month-wrapper table .day {
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border: 1px solid transparent;
    font-size: 12px;
    border-radius: 2px;
    color: #666;
    cursor: default;
  }
  &.date-picker-wrapper .month-wrapper table div.day.lastMonth,
  &.date-picker-wrapper .month-wrapper table div.day.nextMonth {
    color: #999;
    cursor: default;
  }
  &.date-picker-wrapper .month-wrapper table .day.checked {
    background-color: $daterangepickerhover;
  }
  &.date-picker-wrapper .month-wrapper table .week-name {
    height: 20px;
    line-height: 20px;
    font-weight: 100;
    text-transform: uppercase;
  }
  &.date-picker-wrapper .month-wrapper table .day.has-tooltip {
    cursor: help !important;
  }
  &.date-picker-wrapper .time label {
    white-space: nowrap;
  }
  &.date-picker-wrapper .month-wrapper table .day.toMonth.valid {
    color: #666;
    cursor: pointer;
    &.real-today {
      color: $primary;
    }
  }
  &.date-picker-wrapper .month-wrapper table .day.toMonth.invalid {
    color: $outlines;
    cursor: default;
    &.real-today {
      color: $outlines;
    }
  }
  &.date-picker-wrapper .month-wrapper table .day.toMonth.hovering {
    background-color: $daterangepickerhover;
  }
  &.date-picker-wrapper .month-wrapper table .day.nextMonth,
  &.date-picker-wrapper .month-wrapper table .day.lastMonth {
    display: none;
  }
  &.date-picker-wrapper .month-wrapper table .day.real-today {
    background-color: #fff;
    border-color: $primary;
    color: $primary;
  }
  &.date-picker-wrapper .month-wrapper table .day.real-today.checked,
  &.date-picker-wrapper .month-wrapper table .day.real-today.hovering {
    background-color: $daterangepickerhover;
  }
  &.date-picker-wrapper table .caption {
    height: 32px;
  }
  &.date-picker-wrapper table .caption .next,
  &.date-picker-wrapper table .caption .prev {
    padding: 0 5px;
    cursor: pointer;
  }
  &.date-picker-wrapper table .caption .next:hover,
  &.date-picker-wrapper table .caption .prev:hover {
    background-color: #ccc;
    color: white;
  }
  &.date-picker-wrapper .gap {
    display: none;
    position: relative;
    z-index: 1;
    width: 15px;
    height: 100%;
    background-color: red;
    font-size: 0;
    line-height: 0;
    float: left;
    top: -5px;
    margin: 0 10px -10px;
    visibility: hidden;
    height: 0;
  }
  &.date-picker-wrapper .gap .gap-lines {
    height: 100%;
    overflow: hidden;
  }
  &.date-picker-wrapper .gap .gap-line {
    height: 15px;
    width: 15px;
    position: relative;
  }
  &.date-picker-wrapper .gap .gap-line .gap-1 {
    z-index: 1;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid #eee;
    border-bottom: 8px solid #eee;
  }
  &.date-picker-wrapper .gap .gap-line .gap-2 {
    position: absolute;
    right: 0;
    top: 0px;
    z-index: 2;
    height: 0;
    border-left: 8px solid transparent;
    border-top: 8px solid white;
  }
  &.date-picker-wrapper .gap .gap-line .gap-3 {
    position: absolute;
    right: 0;
    top: 8px;
    z-index: 2;
    height: 0;
    border-left: 8px solid transparent;
    border-bottom: 8px solid white;
  }
  &.date-picker-wrapper .gap .gap-top-mask {
    width: 6px;
    height: 1px;
    position: absolute;
    top: -1px;
    left: 1px;
    background-color: #eee;
    z-index: 3;
  }
  &.date-picker-wrapper .gap .gap-bottom-mask {
    width: 6px;
    height: 1px;
    position: absolute;
    bottom: -1px;
    left: 7px;
    background-color: #eee;
    z-index: 3;
  }
  &.date-picker-wrapper .selected-days {
    display: none;
  }
  &.date-picker-wrapper .drp_top-bar {
    line-height: 1.4;
    position: relative;
    padding: 10px 40px 10px 0;
  }
  &.date-picker-wrapper .drp_top-bar .error-top {
    display: none;
  }
  &.date-picker-wrapper .drp_top-bar .normal-top {
    display: none;
  }
  &.date-picker-wrapper .drp_top-bar .default-top {
    display: block;
  }
  &.date-picker-wrapper .drp_top-bar.error .default-top {
    display: none;
  }
  &.date-picker-wrapper .drp_top-bar.error .error-top {
    display: block;
    color: red;
  }
  &.date-picker-wrapper .drp_top-bar.normal .default-top {
    display: none;
  }
  &.date-picker-wrapper .drp_top-bar.normal .normal-top {
    display: block;
  }
  &.date-picker-wrapper .drp_top-bar .apply-btn {
    position: absolute;
    right: 0px;
    top: 6px;
    padding: 3px 5px;
    margin: 0;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #d9eef7;
    border: solid 1px #0076a3;
    background: #0095cd;
    background: -moz-linear-gradient(top, #00adee, #0078a5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
    color: white;
    line-height: initial;
  }
  &.date-picker-wrapper .drp_top-bar .apply-btn.disabled {
    cursor: pointer;
    color: #606060;
    border: solid 1px #b7b7b7;
    background: #fff;
    background: -moz-linear-gradient(top, #fff, #ededed);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
  }
  /*time styling*/
  &.date-picker-wrapper .time {
    position: relative;
  }
  &.date-picker-wrapper.single-month .time {
    display: block;
  }
  &.date-picker-wrapper .time input[type=range] {
    vertical-align: middle;
    width: 129px;
    padding: 0;
    margin: 0;
    height: 20px;
  }
  &.date-picker-wrapper .time1,
  .time2 {
    width: 180px;
    padding: 0 5px;
    text-align: center;
  }
  &.date-picker-wrapper .time1 {
    float: left;
  }
  &.date-picker-wrapper .time2 {
    float: right;
  }
  &.date-picker-wrapper .hour,
  .minute {
    text-align: right;
  }
  &.date-picker-wrapper .hide {
    display: none;
  }
  &.date-picker-wrapper .first-date-selected {
    background-color: $primary !important;
    color: $white !important;
  }
  &.date-picker-wrapper .last-date-selected {
    background-color: $primary !important;
    color: $white !important;
  }
  &.date-picker-wrapper .date-range-length-tip {
    position: absolute;
    margin-top: -4px;
    margin-left: -8px;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .3);
            box-shadow: 0 0 3px rgba(0, 0, 0, .3);
    display: none;
    background-color: $white;
    padding: 0 6px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
    -webkit-filter: drop-shadow(0 0 3px rgba(0, 0, 0, .3));
    -moz-filter: drop-shadow(0 0 3px rgba(0, 0, 0, .3));
    -ms-filter: drop-shadow(0 0 3px rgba(0, 0, 0, .3));
    -o-filter: drop-shadow(0 0 3px rgba(0, 0, 0, .3));
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, .3));
  }
  &.date-picker-wrapper .date-range-length-tip:after {
    content: '';
    position: absolute;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid $white;
    left: 50%;
    margin-left: -4px;
    bottom: -4px;
  }
  &.date-picker-wrapper.two-months.no-gap .month1 .next,
  &.date-picker-wrapper.two-months.no-gap .month2 .prev {
    display: none;
  }
  &.date-picker-wrapper .week-number {
    padding: 5px 0;
    line-height: 1;
    font-size: 12px;
    margin-bottom: 1px;
    color: #999;
    cursor: pointer;
  }
  &.date-picker-wrapper .week-number.week-number-selected {
    color: #4499EE;
    font-weight: bold;
  }
}
